package com.zhoujunlin.dorm.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName doorwarning
 */
@TableName(value ="doorwarning")
@Data
public class Doorwarning implements Serializable {
    /**
     * 
     */
    @TableId
    private Date dooropentime;

    /**
     * 
     */
    private String accountstr;

    /**
     * 
     */
    private Integer numberofperson;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Doorwarning other = (Doorwarning) that;
        return (this.getDooropentime() == null ? other.getDooropentime() == null : this.getDooropentime().equals(other.getDooropentime()))
            && (this.getAccountstr() == null ? other.getAccountstr() == null : this.getAccountstr().equals(other.getAccountstr()))
            && (this.getNumberofperson() == null ? other.getNumberofperson() == null : this.getNumberofperson().equals(other.getNumberofperson()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDooropentime() == null) ? 0 : getDooropentime().hashCode());
        result = prime * result + ((getAccountstr() == null) ? 0 : getAccountstr().hashCode());
        result = prime * result + ((getNumberofperson() == null) ? 0 : getNumberofperson().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dooropentime=").append(dooropentime);
        sb.append(", accountstr=").append(accountstr);
        sb.append(", numberofperson=").append(numberofperson);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}